﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Csla
{
    [Serializable]
    public class GReadOnlyListBase<T, C> : ReadOnlyListBase<T, C>
            where T : GReadOnlyListBase<T, C>
    {
        protected override void RemoveItem(int index)
        {
            C child = this[index];
            base.RemoveItem(index);
            if (child is ITreeNode)
            {
                (child as ITreeNode).ParentNode = null;
            }
        }
    }
}
